import { NgModule, type Type } from "@angular/core";
import { type Routes } from "@angular/router";
import { RouterModule } from "@angular/router";
import { RootComponent } from "../root.component";

// 定义路由表
export const routes: Routes = [
  {
    path: "index",
    pathMatch: "full",
    component: RootComponent,
  },
];

@NgModule({
  imports: [RouterModule.forRoot(routes)],
  exports: [RouterModule],
})
export class RoutingModule {}
